<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><br/><br/><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<meta http-equiv="content-type" content="application/xhtml+xml; charset=UTF-8" />
<?php echo link_tag('public/css/default_home.css'); ?>
<body><br/><br/><img src="http://a3.sphotos.ak.fbcdn.net/hphotos-ak-snc6/188538_1651358003736_1230573763_31328805_4686419_n.jpg">
<h2>Welcome to Pollwatcher!</h2><br/><br/><?php
	if($member==true)
	{
		echo "<p>Welcome  ".$subuser."!<br/><br/>".$invitation_message."<br/><br/>To manage other surveys please login and proceed to the Superusers Tab.</p>";
		?>
		<form action="http://localhost/pollwatcher/index.php/gate" method="POST">
		<div>
		<input type="submit" value="Login!">
		</div>
		</form>
		<?php
	}
	else
	{
		echo "<p>Welcome  ".$subuser."! You have been invited as a subuser.<br/><br/>".$invitation_message."<br/><br/>To manage other surveys, please register first, login then proceed to the Superusers Tab.</p>";
		?>
		<form action="http://localhost/pollwatcher/index.php/gate/register" method="POST">
		<div>
		<input type="submit" value="Register!">
		</div>
		</form>
		<?php
	}<br/><br/>
?>
<p>To get started, click the button below.</p> <br/><br/>
</body>
</html>	
